<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->title;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>
<!--时间选择器-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/lang/cn_utf8.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-setup.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-blue.css" />
<!--colorbox-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/jquery.colorbox.js"></script>
<link href="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/colorbox2.css" rel="stylesheet" type="text/css"/>

<style>
#search table{ width:500px;}
</style>
</head>

<body>
	<div id="main">
		<div id="topMenu">
			<div id="navigation">当前位置：异常查看</div>
			<div id="topOtherMenu">
			</div>
		</div>
		<div id="body">
			<div id="search">
			<form id="searchForm" name="searchForm" method="post" action="<?php echo $this->projectUrl(array('action'=>'receive-log'));?>">	
			<table width="500" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="93" align="right">开发环境：</td>
                <td width="168" align="left">
				<select name="expType" id="expType">
                    <option value="test" <?php if($this->vars['expType']=='test'){?>selected="selected"<?php }?>>测试</option>
                </select></td>
                <td width="239" ><span id="sp_expType">*</span></td>
              </tr>
              <tr>
                <td align="right">日期选择：</td>
                <td align="left"><input name="startTime" type="text" class="input" id="startTime" size="10" value="<?php echo $this->vars['startTime'];?>" />
                  <script type="text/javascript">Calendar.setup({"ifFormat":"%Y-%m-%d","firstDay":0,"showsTime":true,"showOthers":false,"timeFormat":24,"inputField":"startTime","button":"startTime"});</script></td>
                <td ><span id="sp_startTime"></span></td>
              </tr>
              <tr>
                <td align="right">错误级别：</td>
                <td align="left">
				<select name="level" id="level">
                    <option value="">请选择</option>
                    <option value="info" <?php if($this->vars['level']=='info'){?>selected="selected"<?php }?>>info</option>
					<option value="error" <?php if($this->vars['level']=='error'){?>selected="selected"<?php }?>>error</option>
					<option value="warn" <?php if($this->vars['level']=='warn'){?>selected="selected"<?php }?>>warn</option>
                </select></td>
                <td ><span id="sp_osName"></span></td>
              </tr>
             
			   <tr>
                <td align="right">显示记录：</td>
                <td align="left"><input type="text" name="pageSize" id="pageSize" size="4" value="<?php echo $this->vars['pageSize'] ? $this->vars['pageSize'] : 30;?>" class="input"/></td>
                <td ><span id="sp_pageSize"></span></td>
              </tr>
			 
              <tr>
                <td align="right">&nbsp;</td>
                <td align="left">
                    <input name="search" type="submit" id="search2" value="查找" class="button" />
                </td>
              </tr>
            </table>
			</form>
			</div>
			<div id="content" style="padding-top:5px;">
<?php 	if(count($this->rows)>0){?>
						<table class="table reportTable">
						<tr class="subject">			
									<td>日期</td>
									<td>ip</td>
									<td>level</td>
									<td>message</td>
									<td>exception</td>
									<td>tag</td>
									<td>isTest</td>
								</tr>
								<?php foreach($this->rows as $row) {?>
								<tr>
									<td><?php echo $row['time'] ;?></td>
									<td><?php echo $row['ip'];?></td>
									<td><?php echo $row['level'];?></td>
									<td><?php echo $row['message'];?></td>
									<td><?php echo $row['exception'];?></td>
									<td><?php echo $row['tag'];?></td>
									<td><?php echo $row['isTest'];?></td>
								</tr>
								<?php }?>
								
						</table>
	
					
					<table class="controlTable">
						<tr>
							<td align="left">
							</td>
							 <td colspan="6" align="right" class="paginator"><?php echo $this->pageString;?></td>
					</tr>
					</table>
<?php
} else {
?>
	暂无记录！
<?php }?>	
			</div>
		</div>
</div>
</body>
</html>